Bump gir version
authorFelix Krull <f_krull@gmx.de>
Fri, 28 Jun 2019 18:25:18 +0000 (20:25 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:54 +0000 (12:53 -0400)
rust-bindings/rust/Makefile
rust-bindings/rust/src/auto/async_progress.rs
rust-bindings/rust/src/auto/repo.rs
rust-bindings/rust/src/auto/repo_finder.rs
rust-bindings/rust/src/auto/sysroot.rs
rust-bindings/rust/src/auto/versions.txt
rust-bindings/rust/sys/src/auto/versions.txt

index 2512481406a919ddeec3d0d239e34d172b0ed765..1e598acf91a3c017fcd9c8526448f0a2e84f66da 100644 (file)
@@ -5,7 +5,7 @@ all: gir
 
 # -- gir generation --
 target/tools/bin/gir:
-       cargo install --root target/tools --git https://github.com/gtk-rs/gir.git --rev f511aaeee8a324dc8d23b7a854121739b9bfcd2e -- gir
+       cargo install --root target/tools --git https://github.com/gtk-rs/gir.git --rev 20feecf4fe8b4f3524715a0d4111f8c279666324 -- gir
 
 gir: target/tools/bin/gir
        target/tools/bin/gir -c conf/ostree-sys.toml
index e8c666d8495c55a38f7063de15acd67970afaf18..f4374c2eca0420dcba96d9c7cc3697e62241a689 100644 (file)
@@ -147,6 +147,12 @@ impl<O: IsA<AsyncProgress>> AsyncProgressExt for O {
     }
 
     fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
+        unsafe extern "C" fn changed_trampoline<P, F: Fn(&P) + 'static>(this: *mut ostree_sys::OstreeAsyncProgress, f: glib_sys::gpointer)
+            where P: IsA<AsyncProgress>
+        {
+            let f: &F = &*(f as *const F);
+            f(&AsyncProgress::from_glib_borrow(this).unsafe_cast())
+        }
         unsafe {
             let f: Box_<F> = Box_::new(f);
             connect_raw(self.as_ptr() as *mut _, b"changed\0".as_ptr() as *const _,
@@ -155,12 +161,6 @@ impl<O: IsA<AsyncProgress>> AsyncProgressExt for O {
     }
 }
 
-unsafe extern "C" fn changed_trampoline<P, F: Fn(&P) + 'static>(this: *mut ostree_sys::OstreeAsyncProgress, f: glib_sys::gpointer)
-where P: IsA<AsyncProgress> {
-    let f: &F = &*(f as *const F);
-    f(&AsyncProgress::from_glib_borrow(this).unsafe_cast())
-}
-
 impl fmt::Display for AsyncProgress {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         write!(f, "AsyncProgress")
index 32ef40e7b03ac035e5e6c70b1cef098166222ec3..ad7103fa5c8b953b22e5de68f5a01cbe4f472c6c 100644 (file)
@@ -987,6 +987,10 @@ impl Repo {
     //}
 
     pub fn connect_gpg_verify_result<F: Fn(&Repo, &str, &GpgVerifyResult) + 'static>(&self, f: F) -> SignalHandlerId {
+        unsafe extern "C" fn gpg_verify_result_trampoline<F: Fn(&Repo, &str, &GpgVerifyResult) + 'static>(this: *mut ostree_sys::OstreeRepo, checksum: *mut libc::c_char, result: *mut ostree_sys::OstreeGpgVerifyResult, f: glib_sys::gpointer) {
+            let f: &F = &*(f as *const F);
+            f(&from_glib_borrow(this), &GString::from_glib_borrow(checksum), &from_glib_borrow(result))
+        }
         unsafe {
             let f: Box_<F> = Box_::new(f);
             connect_raw(self.as_ptr() as *mut _, b"gpg-verify-result\0".as_ptr() as *const _,
@@ -995,11 +999,6 @@ impl Repo {
     }
 }
 
-unsafe extern "C" fn gpg_verify_result_trampoline<F: Fn(&Repo, &str, &GpgVerifyResult) + 'static>(this: *mut ostree_sys::OstreeRepo, checksum: *mut libc::c_char, result: *mut ostree_sys::OstreeGpgVerifyResult, f: glib_sys::gpointer) {
-    let f: &F = &*(f as *const F);
-    f(&from_glib_borrow(this), &GString::from_glib_borrow(checksum), &from_glib_borrow(result))
-}
-
 impl fmt::Display for Repo {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         write!(f, "Repo")
index f87967160e130e8540fe6453a15294f7d2d4ee8a..7f67dc452b67ce4091120d3bdc49be8fb04ed275 100644 (file)
@@ -23,7 +23,7 @@ impl RepoFinder {
 
     //#[cfg(feature = "futures")]
     //#[cfg(any(feature = "v2018_6", feature = "dox"))]
-    //pub fn resolve_all_async_future(finders: &[RepoFinder], refs: &[&CollectionRef], parent_repo: &Repo) -> Box_<future::Future<Output = Result</*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 2 }, Error>> + std::marker::Unpin> {
+    //pub fn resolve_all_async_future(finders: &[RepoFinder], refs: &[&CollectionRef], parent_repo: &Repo) -> Box_<dyn future::Future<Output = Result</*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 2 }, Error>> + std::marker::Unpin> {
         //use gio::GioFuture;
         //use fragile::Fragile;
 
@@ -56,7 +56,7 @@ pub trait RepoFinderExt: 'static {
 
     //#[cfg(feature = "futures")]
     //#[cfg(any(feature = "v2018_6", feature = "dox"))]
-    //fn resolve_async_future(&self, refs: &[&CollectionRef], parent_repo: &Repo) -> Box_<future::Future<Output = Result</*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 2 }, Error>> + std::marker::Unpin>;
+    //fn resolve_async_future(&self, refs: &[&CollectionRef], parent_repo: &Repo) -> Box_<dyn future::Future<Output = Result</*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 2 }, Error>> + std::marker::Unpin>;
 }
 
 impl<O: IsA<RepoFinder>> RepoFinderExt for O {
@@ -67,7 +67,7 @@ impl<O: IsA<RepoFinder>> RepoFinderExt for O {
 
     //#[cfg(feature = "futures")]
     //#[cfg(any(feature = "v2018_6", feature = "dox"))]
-    //fn resolve_async_future(&self, refs: &[&CollectionRef], parent_repo: &Repo) -> Box_<future::Future<Output = Result</*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 2 }, Error>> + std::marker::Unpin> {
+    //fn resolve_async_future(&self, refs: &[&CollectionRef], parent_repo: &Repo) -> Box_<dyn future::Future<Output = Result</*Unimplemented*/PtrArray TypeId { ns_id: 1, id: 2 }, Error>> + std::marker::Unpin> {
         //use gio::GioFuture;
         //use fragile::Fragile;
 
index aee88eb714f014a28b3bd3711476cad1deff099d..0cb924cb9078085d85debdd3023b486d998965a8 100644 (file)
@@ -238,7 +238,7 @@ impl Sysroot {
     }
 
     #[cfg(feature = "futures")]
-    pub fn lock_async_future(&self) -> Box_<future::Future<Output = Result<(), Error>> + std::marker::Unpin> {
+    pub fn lock_async_future(&self) -> Box_<dyn future::Future<Output = Result<(), Error>> + std::marker::Unpin> {
         use gio::GioFuture;
         use fragile::Fragile;
 
@@ -351,6 +351,10 @@ impl Sysroot {
 
     #[cfg(any(feature = "v2017_10", feature = "dox"))]
     pub fn connect_journal_msg<F: Fn(&Sysroot, &str) + 'static>(&self, f: F) -> SignalHandlerId {
+        unsafe extern "C" fn journal_msg_trampoline<F: Fn(&Sysroot, &str) + 'static>(this: *mut ostree_sys::OstreeSysroot, msg: *mut libc::c_char, f: glib_sys::gpointer) {
+            let f: &F = &*(f as *const F);
+            f(&from_glib_borrow(this), &GString::from_glib_borrow(msg))
+        }
         unsafe {
             let f: Box_<F> = Box_::new(f);
             connect_raw(self.as_ptr() as *mut _, b"journal-msg\0".as_ptr() as *const _,
@@ -359,12 +363,6 @@ impl Sysroot {
     }
 }
 
-#[cfg(any(feature = "v2017_10", feature = "dox"))]
-unsafe extern "C" fn journal_msg_trampoline<F: Fn(&Sysroot, &str) + 'static>(this: *mut ostree_sys::OstreeSysroot, msg: *mut libc::c_char, f: glib_sys::gpointer) {
-    let f: &F = &*(f as *const F);
-    f(&from_glib_borrow(this), &GString::from_glib_borrow(msg))
-}
-
 impl fmt::Display for Sysroot {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         write!(f, "Sysroot")
index d07525712851d4b580a2d4df3d851657f568d042..8fead170c550a06697a0f49d56f5d5877829de09 100644 (file)
@@ -1,2 +1,2 @@
-Generated by gir (https://github.com/gtk-rs/gir @ f511aae)
+Generated by gir (https://github.com/gtk-rs/gir @ 20feecf)
 from gir-files (https://github.com/gtk-rs/gir-files @ ???)
index d07525712851d4b580a2d4df3d851657f568d042..8fead170c550a06697a0f49d56f5d5877829de09 100644 (file)
@@ -1,2 +1,2 @@
-Generated by gir (https://github.com/gtk-rs/gir @ f511aae)
+Generated by gir (https://github.com/gtk-rs/gir @ 20feecf)
 from gir-files (https://github.com/gtk-rs/gir-files @ ???)